package com.s10.ecloud.web.model;

// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "DEVICECOMMAND", catalog = "ECLOUD")
public class Command implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Integer id;
	private Integer deviceModelId;
	private String name;
	private String data;

	private int hexCode;

	// Constructors

	/** default constructor */
	public Command() {
	}

	/** full constructor */
	public Command(Integer eId, String name, String data) {
		this.deviceModelId = eId;
		this.data = data;
		this.name = name;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "DEVICE_MODEL_ID", length = 50)
	public Integer getDeviceModelId() {
		return this.deviceModelId;
	}

	public void setDeviceModelId(Integer e) {
		this.deviceModelId = e;
	}

	@Column(name = "name", length = 40)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "data", length = 40)
	public String getData() {
		return this.data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public int getHexCode() {
		return hexCode;
	}

	public void setHexCode(int hexCode) {
		this.hexCode = hexCode;
	}

}